<?php
/*-----------------------------------------------------------------------------------*/
/*	Counter Config
/*-----------------------------------------------------------------------------------*/
$infographer_shortcodes['counter'] = array(
    'no_preview' => true,
    'params' => array(
	'type' => array(
            'type' => 'select',
            'label' => 'Type',
            'desc' => 'Type of counter',
            'options' => array(
                'type1' => 'Zero Counter',
                'type2' => 'Random Counter',
            ),
        ),
        'position' => array(
            'type' => 'select',
            'label' => 'Position',
            'desc' => 'Position of counter',
            'options' => array(
                'left' => 'Left',
                'center' => 'Center',
                'right' => 'Right',
            ),
        ),
        'delay' => array(
            'type' => 'text',
            'label' => 'Delay',
            'desc' => 'Enter the delay in ms',
            'std' => '',
	),
        'digit' => array(
            'type' => 'text',
            'label' => 'Digit',
            'desc' => 'Enter the digit to count to',
            'std' => '',
	),
        'font_size' => array(
            'type' => 'text',
            'label' => 'Font Size',
            'desc' => 'Enter the font size in px',
            'std' => '',
	),
        'font_color' => array(
            'type' => 'rangecolor',
            'label' => 'Font Color',
            'desc' => 'Use the sliders below to select a font color',
            'std' => 'rgb(255,255,255)',
	),
    ),
    'shortcode' => '[counter type="{{type}}" position="{{position}}" delay={{delay}} digit={{digit}} font_size={{font_size}} font_color={{font_color}}][/counter]',
    'popup_title' => 'Insert Counter Shortcode'
);

